package com.fjec.paid.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 007.订单退款表
 * </p>
 *
 * @author admin
 * @since 2020-11-09
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("biz_order_refund")
public class BizOrderRefund implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键Id
     */
    @TableId("Id")
    private Long id;

    /**
     * 订单Id
     */
    @TableField("OrderId")
    private Long orderId;

    /**
     * 子订单Id
     */
    @TableField("SubOrderId")
    private Long subOrderId;

    /**
     * 投诉Id
     */
    @TableField("ComplaintId")
    private Long complaintId;

    /**
     * 退款方式 1=微信
2=支付宝
3=借记卡
4=信用卡
     */
    @TableField("PaymentType")
    private Integer paymentType;

    /**
     * 退款金额 单位分
     */
    @TableField("Payment")
    private Integer payment;

    /**
     * 退款原因
     */
    @TableField("Reason")
    private String reason;

    /**
     * 退款业务Id
     */
    @TableField("BusiId")
    private Long busiId;

    /**
     * 创建时间
     */
    @TableField("CreateTime")
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    @TableField("UpdateTime")
    private LocalDateTime updateTime;

    /**
     * 返还比例
     */
    @TableField("Percent")
    private BigDecimal percent;

    /**
     * 退款状态
     */
    @TableField("RefundStatus")
    private Integer refundStatus;

    /**
     * 状态是否已同步 0=未同步
1=已同步
     */
    @TableField("SyncStatus")
    private Integer syncStatus;


}
